package com.example.webmagicdemo;

import us.codecraft.webmagic.Spider;

/**
 * @Description TODO
 * @Author lililiang
 * @Date 21/03/03 15:04
 * @Version 1.0
 **/
public class JobTest {
    public static void main(String[] args) {
        Spider.create(new JobTask())
                .addUrl("https://www.tianyancha.com/search?key=阿里巴巴网络技术有限公司")
                .addPipeline(new JobPipeline())
                .thread(1)//开三个线程，根据需求设置
                .run();
    }
}
